<template>
  <van-action-bar>
    <van-action-bar-icon icon="chat-o" text="客服" />
    <van-action-bar-icon icon="cart-o" text="购物车" />
    <van-action-bar-icon icon="star" text="已收藏" color="#ff5000" />
    <van-action-bar-button type="warning" @click="addCart" text="加入购物车" />
    <van-action-bar-button type="danger" text="立即购买" />
  </van-action-bar>
</template>

<script setup>
import { ref } from "vue";
import { useRoute, useRouter } from "vue-router";
const route = new useRoute();
const router = new useRouter();
import { detailApi } from "@/api/api";
let detailDate = ref({});
detailApi(route.params.goods_id).then((res) => {
  console.log(res);
  detailDate.value = res.data.message;
});
</script>

<style lang="scss" scoped></style>